From 6d39cee75e7ef7c5e06d1a745a32224e11d68c37 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 23 Jan 2026 23:16:45 +0800 Subject: HALF WORK! --- www-2/src/pages/[...id].astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www-2/src/pages/[...id].astro') diff --git a/www-2/src/pages/[...id].astro b/www-2/src/pages/[...id].astro index b3c5b40..bbaed88 100644 --- a/www-2/src/pages/[...id].astro +++ b/www-2/src/pages/[...id].astro @@ -4,8 +4,8 @@ import { getCollection, render } from "astro:content"; import ArticlePage from "../layouts/ArticlePage.astro"; export async function getStaticPaths() { - const posts = await getCollection("blogs"); - return posts.map((post) => ({ + const articles = await getCollection("articles"); + return articles.map((post) => ({ params: { id: post.id }, props: { post }, })); -- cgit v1.2.3